public class B {

    private static B b;

    private B() {

    }

    public static B getOfB() {
        if(b == null) {
            b = new B();
        }
        return b;
    }

}
